package com.fs.service.bo.friend;

import com.fs.entity.Friend;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

@Data
@NoArgsConstructor
public class BoFriend {
    private int id;
    private String name;
    private String phone;

    public BoFriend(@NonNull Friend friend) {
        this.id = friend.getId();
        this.name = friend.getName();
        this.phone = friend.getPhone();
    }
}
